import React from 'react'

export const WholeData = {
  name: '李四',
  age: 18,
}
// 全局修改内容
export const WholeAction = (self) => ({
  updateName(val) {
    console.log(val)
    self.setState({
      name: val,
    })
  },
})
export const WholeText = React.createContext(WholeData)
